﻿using MangoMes.MVC.Commands;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;

namespace MangoMes.MVC.Controllers
{

    public class EnterpriseController : Controller
    {
        private readonly IpAddressesConfig _ipAddressesConfig;

        public EnterpriseController(IOptions<IpAddressesConfig> ipAddressesConfig)
        {
            _ipAddressesConfig = ipAddressesConfig.Value;
        }
        public IActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// 企业新增
        /// </summary>
        /// <returns></returns>
        public IActionResult EnterpriseAdd()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }
        /// <summary>
        /// 企业列表
        /// </summary>
        /// <returns></returns>
        public IActionResult EnterpriseList()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }
        /// <summary>
        /// 部门新增
        /// </summary>
        /// <returns></returns>
        public IActionResult DepartmentAdd()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }
        /// <summary>
        /// 部门列表
        /// </summary>
        /// <returns></returns>
        public IActionResult DepartmentList()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }
        /// <summary>
        /// 工艺路线编辑
        /// </summary>
        /// <returns></returns>
        public IActionResult CraftRouteUpdate()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }
        /// <summary>
        /// 工艺路线列表
        /// </summary>
        /// <returns></returns>
        public IActionResult CraftRouteList()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }
        /// <summary>
        /// 客户列表
        /// </summary>
        /// <returns></returns>
        public IActionResult ClientManagementList()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }
        /// <summary>
        /// 客户修改
        /// </summary>
        /// <returns></returns>
        public IActionResult ClientManagementUpdate()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }
        /// <summary>
        /// 采购入库列表
        /// </summary>
        /// <returns></returns>
        public IActionResult PurchaseStorageList()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }
        /// <summary>
        /// 采购入库修改
        /// </summary>
        /// <returns></returns>
        public IActionResult PurchaseStorageUpdate()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }
        /// <summary>
        /// 物料添加
        /// </summary>
        /// <returns></returns>
        public IActionResult MaterialAdd()
        {
            ViewBag.FoundationRead = _ipAddressesConfig.FoundationRead;
            ViewBag.FoundationWrite = _ipAddressesConfig.FoundationWrite;
            return View();
        }
    }
}
